<template>
  <div id="app">
      <div id="fu">
        {{msg}} <br/>
      </div>
      <router-link to="/children">children</router-link>
      <router-link to="/home">home</router-link>
      <hr/>
      <!--路由出口-->
      <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'app',
  data () {
    return {
       msg:"我是一个根组件"
    }
  }
}
</script>

<style lang="scss">
  #app #fu{
    width: 100%;
    height: 100px;
  }
</style>
